package com.hs.es.mapper;

import com.hs.es.entity.UserEntity;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description: 使用 实现ElasticsearchRepository 方式进行测试
 * @Author 胡尚
 * @Date: 2024/8/11 17:10
 */
@Repository
public interface UserRepository extends ElasticsearchRepository<UserEntity, Long> {

    List<UserEntity> findByName(String name);
}
